'use strict';
module.exports = function (sequelize, DataTypes) {
  var user = sequelize.define('user', {
    user_name: DataTypes.STRING,
    password: DataTypes.STRING,
    type: DataTypes.INTEGER
  }, {
      tableName: "user",
      createdAt: "created_time",
      updatedAt: "updated_time",
    });

  // user.associate = (models) => {
  //   user.belongsTo(
  //     models.User,
  //     {foreignKey: 'user_id', targetKey: "id", as: 'user',}
  // )}
  return user;
};